package com.lzx.dormsys.mapper;

import java.util.List;
import com.lzx.dormsys.bean.DoorBean;
import com.lzx.dormsys.bean.DeviceBean;
import org.springframework.stereotype.Repository;

/**
 * doorMapper接口
 * 
 * @author lzx
 * @date 2021-09-10
 */
@Repository
public interface DoorBeanMapper 
{
    /**
     * 查询door
     * 
     * @param doorId doorID
     * @return door
     */
    public DoorBean selectDoorBeanById(Long doorId);

    /**
     * 查询door列表
     * 
     * @param doorBean door
     * @return door集合
     */
    public List<DoorBean> selectDoorBeanList(DoorBean doorBean);

    /**
     * 新增door
     * 
     * @param doorBean door
     * @return 结果
     */
    public int insertDoorBean(DoorBean doorBean);

    /**
     * 修改door
     * 
     * @param doorBean door
     * @return 结果
     */
    public int updateDoorBean(DoorBean doorBean);

    /**
     * 删除door
     * 
     * @param doorId doorID
     * @return 结果
     */
    public int deleteDoorBeanById(Long doorId);

    /**
     * 批量删除door
     * 
     * @param doorIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteDoorBeanByIds(Long[] doorIds);

    /**
     * 批量删除dms
     * 
     * @param
     * @return 结果
     */
    public int deleteDeviceBeanByDeviceIds(Long[] doorIds);
    
    /**
     * 批量新增dms
     * 
     * @param deviceBeanList dms列表
     * @return 结果
     */
    public int batchDeviceBean(List<DeviceBean> deviceBeanList);
    

    /**
     * 通过doorID删除device信息
     * 
     * @param  doorId doorID
     * @return 结果
     */
    public int deleteDeviceBeanByDeviceId(Long doorId);
}
